package com.itheima.pojo;

import lombok.Data;

@Data
public class C {
    private String code;
    private String  phone;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        C c = (C) o;

        if (code != null ? !code.equals(c.code) : c.code != null) return false;
        return phone != null ? phone.equals(c.phone) : c.phone == null;
    }

    @Override
    public int hashCode() {
        int result = code != null ? code.hashCode() : 0;
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        return result;
    }
}
